Repository navigation
feat(redis-docs-mcp): add a skill for reading redis.io docs MCP results (RAAE-1835) - #45
Conversation
Declares the public Redis docs MCP gateway at https://redis.io/mcp in the ChatGPT/Codex and Claude Code plugin package, so enabling the plugin connects it with no user configuration. The endpoint is public, read-only, and needs no credentials and no local Redis: three tools (search, fetch, ask) over streamable HTTP. MCP is a plugin-level component — the agentskills.io format has no MCP field, so this belongs in the plugin manifests rather than in a skill. Both manifests reference one shared .mcp.json at the plugin root, since Claude Code and Codex accept the same entry shape: { "mcpServers": { "redis-docs": { "type": "http", "url": "..." } } } Verified end-to-end against Codex CLI 0.149.0 by installing this package from a local marketplace: the server appears in `codex mcp list` and a session calls `redis-docs/search` successfully with the pre-existing global Redis docs server disabled, so the tool can only have come from the plugin. `type` is required on both platforms — Claude Code reads a url without it as a stdio server and skips it, and OpenAI's own bundled github plugin carries "type": "http". The file has to sit at the plugin root; Codex did not resolve it from a nested path. validate:claude-plugins now checks mcpServers entries, which were previously unvalidated in either inline or path form: a url with no type is fatal at runtime, so it is now a validation error, along with unknown transports and an entry defining neither url nor command. Cursor is not covered. Its marketplace pluginRoot is skills, so every Cursor plugin is a single skill directory; its declaration ships with the redis-docs-mcp skill in a follow-up, alongside that skill's eval suite. Refs RAAE-1835
Drop the AGENTS.md section. That file is the maintainers' guidance for this repo, and restructuring it is not an outside contributor's call to make; the constraints it recorded (type is required, the file belongs at the plugin root, the manifests' versions move together) are already in the commit that added the server and in the validator that enforces them. Trim the README down to what someone installing the plugin needs: what the server is, which channels carry it, and how to add it by hand. Refs RAAE-1835
Follows the manifest wiring that declared the public docs MCP gateway for Claude Code and Codex, and adds the two things it left out. Cursor: its marketplace sets pluginRoot: skills, so a Cursor plugin is a skill directory and a server can only be declared from inside one. The new skill carries the mcpServers block and gets a marketplace entry. Guidance: the gateway ships its own tool descriptions, and on when to call each tool they are already accurate, so the skill does not restate them. It covers only what those descriptions get wrong or leave out: - ids address sections, not pages, in four shapes; repeated urls in one result set are adjacent sections rather than duplicates; a #sec: id returns ~1-2 KB while a bare page id returns the whole page; never construct an id - metadata.version means "added in", not "current as of" - client usage guides and operate/ docs are indexed, symbol-level client API reference is not, and a miss means "not on redis.io" rather than "no such thing" - the ask rate limit, and why a grounded refusal must not be retried reworded No references/ directory, unlike the other eight skills. The convention is to move long code samples out of SKILL.md; this skill has none, and every line in it is hot path for a tool the agent is about to call in the same turn. Splitting ~50 lines across five files would add a summary and a pointer per file for no gain, and putting "never construct an id" behind an on-demand load means the agent constructs one first. Three claims in the first draft of this skill were wrong, and are corrected here against the live endpoint. metadata.version is a real Redis version on commands pages (the introducing release); client library documentation is indexed, only symbol-level reference is missing; and release notes are indexed too. Two of the three had already been written into evals, so the suite would have rewarded the wrong behaviour and the baseline would have frozen it. The eval suite embeds the server's own instructions and tool descriptions in both arms, because in production the agent always has them - otherwise the measured delta credits the skill for work the tool descriptions already do. The harness spawns the CLI without --mcp-config, so the suite grades stated approach rather than tool calls; invocation is verified manually instead. The Cursor manifest omits "type", matching Cursor's published example, while Claude Code requires it. That asymmetry is deliberate. Server key stays redis-docs so the composed tool name stays mcp__plugin_redis-development_redis-docs__search; the skill directory takes the clearer -mcp suffix, which also matches the gateway's own serverInfo.name. redis-development and the Claude marketplace move to 1.6.0; the Cursor marketplace to 1.5.0 with the new entry at 1.0.0. Suite result: mean +33 pass-rate points, all three models improve, and the skill arm is also more concise (-363 tokens mean). Per model: opus-5 70 -> 95, sonnet-5 53 -> 95, haiku-4.5 45 -> 77.
VaskoAtanasovRedis
left a comment
There was a problem hiding this comment.
The PR needs rebasing on latest main I believe, and feel free to mark it as non-draft.
After rebasing you might need to put the MCP wiring in plugins/redis-development/.cursor-pugin/plugin.json - keep the single marketplace entry
Resolves the description conflicts in the three manifests by keeping upstream's Iris wording and appending the docs-lookup clause. Upstream's Iris release also took 1.5.0, which git merged silently because both sides made the same edit. 1.5.0 now means that release, so the docs MCP moves to 1.6.0 across the Claude marketplace and both plugin manifests. The README channel table said Cursor packages one plugin per skill; upstream has since consolidated Cursor into a single bundle, so that reason is dropped. Cursor still does not declare the server, so the row stays "Not yet".
collectMcpServerMaps returned an empty list, with no error, when a referenced config file parsed but carried no mcpServers object. Path existence still passed, so a file written with Codex's snake_case mcp_servers key, or with an array in place of the map, skipped every server check this validator exists to run. It now reports that case, and a manifest mcpServers value that is neither a path, an array of paths, nor an object.
Cursor now publishes one redis-development plugin from the same directory as the Claude Code and Codex plugins, so it can point at the same shared .mcp.json rather than waiting on a per-skill Cursor plugin. The shared config keeps "type": "http", which Claude Code requires. Cursor's published example omits it; the plugin was not installed in Cursor to confirm it is accepted. Cursor manifest and marketplace move to 1.6.0 alongside the Claude and Codex manifests.
validate-codex-plugins never checked the new Codex mcpServers reference, so a wrong or missing path still passed. It now has to match the Claude manifest's, whose config the Claude validator checks in full. The README said the snippet adds the server to any MCP client, but the command is Claude Code's. It also still called the Codex archive a skills-only submission, which it stopped being once the directory carried .mcp.json.
The README now says each tool call sends the agent's query text to redis.io and how to disable the server, so a user under a data policy can decide before it runs. fetch is described as retrieving a page or a section, which is what a bare page id and a #sec: id return respectively. The Codex longDescription gains the docs-lookup clause the other description fields already had. The validator comment no longer implies Codex's plugin .mcp.json uses snake_case; only its config.toml does.
Brings in the manifest PR, which now wires the docs MCP into all three platforms from one shared .mcp.json, including upstream's consolidation of Cursor into a single redis-development plugin. That consolidation makes this branch's per-skill Cursor packaging obsolete, so skills/redis-docs-mcp/.cursor-plugin/ and its marketplace entry are dropped in favour of the single entry. The skill reaches Cursor through the shared ./skills/ directory like every other skill. The manifest PR ships as 1.6.0, so adding this skill moves the three plugin manifests and both marketplaces to 1.7.0.
…ng misses The description was a plain YAML scalar, so the space before "#sec:w1" began a comment: it parsed to 364 of 542 characters, ending "ids look like", and silently dropped the metadata.version, empty-search and rate-limit triggers. It is now a folded scalar and parses in full. The corpus section claimed a search for a constructor's keyword arguments would not find them, and told agents to report a miss as "not on redis.io". Neither holds: a search for redis-py's max_connections returns the async connection-pools section, whose snippet omits the parameter while the fetched body documents it. Agents are now told to fetch the relevant hits first and to report a miss as not found in what they retrieved. Eval 4 is rewritten to reward that, instead of rewarding "not documented on redis.io". Re-checked against the live server, which has changed since the skill was written: links in returned text now carry source-file targets rather than empty ones, and the EXPIRE page is about 8.5 KB.
claude-opus-5 and claude-sonnet-5 are retired: the Claude Code CLI now resolves both to its default model, claude-opus-5-5, without an error, so a run would have measured Opus in every arm and graded with Opus. The suite moves to claude-opus-5-5 and claude-sonnet-5-5, and the judge to claude-sonnet-5-5. claude-haiku-4-5-20251001 still resolves to itself and stays.
Re-run against the folded description, the corrected corpus section and the rewritten eval 4, on current model IDs. Mean +29 pass-rate points, all three models improve: opus-5.5 72 -> 95, sonnet-5.5 67 -> 97, haiku-4.5 48 -> 83. Every arm's CLI modelUsage matches the model it requested, and no output is degenerate.
|
Merged 🤖 Addressed by Claude Code |
… the skill The citation guidance said only named-anchor ids return a url with a usable fragment. Anchor+window ids such as develop/clients/jedis/connect#sec:configure-a-connection-pool-w0 do as well; only bare #sec:wN ids don't. The README skills table now lists redis-docs-mcp.
…ite accurately The note on what leaves the machine sat under ask and named only ask's path. search and fetch send their query text to Redis too, so it now says so, still as a preference rather than a rule. The suite description named three of its five rules and called the weakest one a discriminator. It now lists all five and says which discriminate.
…ff eval 5 grades The skill stated ask's rate limit as about four requests a minute, a hard output cap, and a separate, looser budget for search and fetch. None of these is published: the server sends no rate-limit headers on any tool and its instructions name no limit. The skill now says only that ask is rate-limited per IP at a low per-minute budget, and eval 5 no longer grades the number or the budget claim. Eval 5 also graded backing off after a rate-limit error, which the skill never said, so it measured the model rather than the skill. Section 4 now says it.
Re-run on 3b85fdd. Mean +27 pass-rate points, all three models improve: opus-5.5 73 -> 95, sonnet-5.5 60 -> 98, haiku-4.5 52 -> 73. Every arm's CLI modelUsage matches the model it requested, and no output is degenerate.
|
@VaskoAtanasovRedis This PR contains the changes from #44 as well - would you prefer that I close #44 and they all get merged at once through this PR? |
|
@vishal-bala yes please, close #44 and merge all through this PR. Thank you! |
|
Sure thing 👍 |
Motivation
#44 connects agents to the redis.io documentation MCP server, whose own tool descriptions tell an agent when to call
search,fetchandaskbut not how to read what comes back. They also describe the index as pages when it is indexed by section. Without guidance an agent reads a shortfetchresult as truncated, builds ids that do not exist, takesmetadata.versionas the current release, and reports a search miss as proof that something is not documented. This PR adds theredis-docs-mcpskill, which corrects those four points and leaves out everything the tool descriptions already say.Changes
The
redis-docs-mcpskillskills/redis-docs-mcp/SKILL.mdis 72 lines in four numbered sections, one per correction:#sec:id returns one section of about 1–2 KB while a bare page id such ascommands/expirereturns the whole page, about 8.5 KB. Several hits sharing one url are different sections of that page, and an id must come from asearchoraskresult, never be built by hand.metadata.versionmeans "added in", not "current as of". On a command page it is the release that introduced the command (commands/setexreports2.0.0,commands/hexpirereports7.4.0) and says nothing about later changes; elsewhere it is a product label such asstack.max_connectionsreturns the async connection-pools section with a snippet that never mentions it, while the fetched section documents it. Where a fetched result still lacks something, the skill tells the agent to report it as not found in the results retrieved, never as absent from redis.io.askcosts more than it looks. It is rate-limited per IP at a low per-minute budget shared by everything behind the same address, so the skill says to back off before retrying and to answer a grounded refusal withsearchandfetchinstead of rewording it.The skill has no
references/directory, unlike its siblings. The repo's convention moves long code samples out ofSKILL.md; this skill has none, and every line applies to the call the agent is about to make, so loading it on demand would mean the mistake comes first. Its description is a folded YAML scalar, because a plain scalar would turn the#sec:w1example in its trigger list into a comment.Eval suite
evals/redis-docs-mcp/docs-mcp/runs five evals across three models, with and without the skill, two repetitions each:Every prompt embeds the server's own instructions and tool descriptions in both arms. An agent in production always has them, so leaving them out of the baseline arm would credit the skill for guidance the server already gives. The harness gives runs no MCP access, so the suite grades the approach a model states, not real tool calls.
Across 60 generations the skill adds a mean of 27 pass-rate points, and all three models improve. The aggregate report gives a mean token delta of −102, a mean time delta of +1.4 s and a mean cost delta of +$0.052, and the full run cost $11.58.
The suite is new, so
mainhas no baseline to compare against, and the report's "Against Baseline" section does not apply. The comparison this PR makes is the without-skill arm, which is the state before the skill exists, against the with-skill arm, shown per model in the report:The baseline committed under
baselines/is this run, and future changes to the skill compare against it.Minor changes
1.7.0, on top of feat(plugins): bundle the redis.io docs MCP server in the Claude Code, Codex and Cursor plugins (RAAE-1835) #44's1.6.0.plugins/redis-development/skills/redis-docs-mcp/holds the vendored copy generated bynpm run sync:plugins.redis-docs-mcp.Notes
This PR is stacked on #44 and merges that branch, so the diff includes its commits; everything after
5e79196, the head of #44, belongs to this PR. Merge #44 first.The matrix uses
claude-opus-5-5andclaude-sonnet-5-5, withclaude-sonnet-5-5as judge, while the other suites still nameclaude-opus-5andclaude-sonnet-5. Those two IDs are retired, and the current Claude Code CLI resolves both toclaude-opus-5-5without an error, so a run on them would measure Opus in every arm. Each run's CLImodelUsagematched the model it requested.Per-eval figures carry real run-to-run noise. Each eval has six runs per arm, and
version-metadata-trap, whose prompt did not change between the last two runs, moved from +6 to +22 points between them. The per-model figures and the mean are steadier than any single eval's.The skill asks agents to prefer a generic question over pasting proprietary code into the tools, as a preference rather than a rule, since it cannot know what a given user's data policy permits.
The skill describes
ask's rate limit only as a low per-minute budget per IP, without a figure, because the limits are not published anywhere public.Reviewer Brief
Start here:
skills/redis-docs-mcp/SKILL.md, section 1. It corrects the server's own "pages" wording, and most of the rest of the skill and its evals build on that section-scoped id model.Where it could fail
skills/redis-docs-mcp/SKILL.mdsections 1 and 2 quote live server behaviour this repo does not control (id shapes,metadata.versionvalues, page sizes). If the server has changed since 4 November 2026, check them againsthttps://redis.io/mcp.evals/redis-docs-mcp/docs-mcp/evals.json: with six runs per arm, a single eval's delta can move by about 15 points between runs with no change to the skill, so judge a regression on the per-model figures rather than one eval.Not verified: whether the
descriptionactivates the skill, sincewith_skillruns are pointed at the skill directly; real tool calls, since the harness gives runs no MCP access.Beyond CI: the description parses to all 538 characters with PyYAML, where a plain-scalar version parsed to 364; every run's CLI
modelUsagematched its requested model across all 60 generations; and each factual claim in the skill was checked against the live server on 4 November 2026.Since the last brief:
3b85fdddropsask's unpublished rate-limit figures from the skill and eval 5 and adds back-off guidance;1200ddfre-baselines the suite on it.Reviewed
780faf5, fixes in1f789a0,09bc2cb· Claude Code (claude-opus-5-5) · lenses: correctness, security, design, tests, docs, Redis behaviour